<div class="depot-form">
  <%= error_messages_for 'order' %>
  <% form_for :order, :url => { :action => :save_order} do |form| %>
  <fieldset>
    <legend>请输入您的详细信息</legend>
    <div>
      <%= form.label :name, "姓名:" %>
      <%= form.text_field :name, :size => 40   %>
    </div>

    <div>
      <%= form.label :address, "地址：" %>
      <%= form.text_area :address, :rows => 3, :cols => 40   %>
    </div>

    <div>
      <%= form.label :name, "邮箱：" %>
      <%= form.text_field :email, :size => 40   %>
    </div>

    <div>
      <%= form.label :pay_type, "付款：" %>
      <%= form.select :pay_type,
      Order::PAYMENT_TYPES,
      :prompt => "Select a payment method"%>
    </div>

    <%= submit_tag "订购", :class => "submit" %>
  </fieldset>
  <%end%>
</div>